package com.zfei.gfb.dao;

import com.zfei.gfb.model.GfbJob;
import com.zfei.gfb.query.GfbJobQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GfbJobMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GfbJob record);

    int insertSelective(GfbJob record);

    GfbJob selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GfbJob record);

    int updateByPrimaryKey(GfbJob record);

    List<GfbJob> list(GfbJobQuery record);

    List<GfbJob> listH5(GfbJobQuery record);

    int total(GfbJobQuery record);

    int totalH5(GfbJobQuery record);

    List<GfbJob> listJob(GfbJobQuery record);

    List<GfbJob> list(List ids);

    List<GfbJob> selectByUserIdAndStatus(@Param("id") Integer id, @Param("status") Integer status);

    int updateByUserIdAndStatus(@Param("id") Integer id, @Param("status") Integer status);

    int selectCountByCompany(Integer userId);
}